<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="PostUploadDetails.aspx.cs" Inherits="PostUploadDetails" Title="Post Upload Votes" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phActions" Runat="Server">
    <asp:HyperLink ID="lnkViewUploads" Text="View All Uploads" runat="server" />
    <asp:LinkButton ID="lnkApprove" Text="Approve" OnClientClick="return confirm('Are you sure you want to approve this upload?');" runat="server" OnClick="lnkApprove_Click" />
    <asp:LinkButton ID="lnkSuspend" Text="Suspend" OnClientClick="return confirm('Are you sure you want to suspend this upload?');" runat="server" OnClick="lnkSuspend_Click" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phMain" Runat="Server">
    <h1><asp:Label ID="lblTitle" runat="server"/></h1>
    <asp:Label ID="label1" CssClass="label" Text="User:" AssociatedControlID="lblUserName" runat="server" />
    <asp:Label ID="lblUserName" runat="server" /><br />
    <asp:Label ID="label2" CssClass="label" Text="Comment:" AssociatedControlID="lblComment" runat="server" />
    <asp:Label ID="lblComment" runat="server" />
    <br />
    <asp:Label ID="Label5" runat="server" AssociatedControlID="lblIPAddress" Text="I.P. Address"></asp:Label>
    <asp:Label ID="lblIPAddress" runat="server"></asp:Label><br />
    <asp:Label ID="label3" CssClass="label" Text="File:" AssociatedControlID="lblComment" runat="server" />
    <ajax:ModalPopupExtender ID="popupExtender" PopupControlID="popup" OkControlID="imgFull" TargetControlID="imgThumb" runat="server" />
    <acms:AcmsImage ID="imgThumb" RenderHeight="100" RenderWidth="100" runat="server" /><br />
    <asp:Label ID="label4" Text="Status:" AssociatedControlID="lblStatus" runat="server" />
    <asp:Label ID="lblStatus" runat="server" />
    <br />
    <asp:Label ID="Label6" runat="server" AssociatedControlID="rating" Text="Average Rating:"></asp:Label>
    <ajax:Rating ID="rating" MaxRating="5" EmptyStarCssClass="emptyRatingStar" FilledStarCssClass="filledRatingStar"
    StarCssClass="ratingStar" WaitingStarCssClass="savedRatingStar" runat="server" ReadOnly="True" OnClick="javascript:return false">
    </ajax:Rating>
    <br />
    <telerik:RadGrid ID="gvTotals" runat="server" AutoGenerateColumns="False" EnableAJAX="true" DataSourceID="dsTotals"
        GridLines="None">
        <MasterTableView DataSourceID="dsTotals" AllowSorting="true">
            <Columns>
                <telerik:GridBoundColumn DataField="Score" DataType="System.Decimal" HeaderText="Score"
                    ReadOnly="True" SortExpression="Score" UniqueName="Score">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Total" DataType="System.Int32" HeaderText="Total"
                    ReadOnly="True" SortExpression="Total" UniqueName="Total">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Percentage" DataFormatString="{0:###%}" HeaderText="Percentage"
                    SortExpression="Total" UniqueName="column">
                </telerik:GridBoundColumn>
            </Columns>
            <RowIndicatorColumn Visible="False">
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn Visible="False">
                <HeaderStyle Width="19px" />
            </ExpandCollapseColumn>
        </MasterTableView>
    </telerik:RadGrid><acms:UserPostUploadVoteTotalDataSource ID="dsTotals" runat="server"
        EnablePaging="False" OnSelectData="dsTotals_SelectData">
    </acms:UserPostUploadVoteTotalDataSource>
    <asp:Panel ID="popup" style="display:none" runat="server">
        <acms:AcmsImage ID="imgFull" RenderWidth="800" RenderHeight="600" runat="server" />
    </asp:Panel>
</asp:Content>

